<script setup>
import { ref } from 'vue'

const username = ref('')
const password = ref('')
const capcha = ref('')
</script>
<template>
  <div class="container">
    <div class="main">
      <div class="main-left"></div>
      <div class="main-right">
        <p class="title">系统登录</p>
        <div class="form">
          <el-form>
            <div class="item-center">
              <el-icon><User /></el-icon><el-input placeholder="请输入用户名" v-model="username" class="username-input" />
            </div>
            <div class="item-center">
              <el-icon><Check /></el-icon><el-input placeholder="请输入密码" v-model="password" class="password-input" />
            </div>
            <div style="height: 40px;" class="item-center">
              <el-input style="flex:1;margin-left: 114px;" placeholder="请输入验证码" v-model="capcha"/>
              <div style="flex:1;margin-right:88px;">验证码</div>
            </div>
            <div class="item-center">
              <el-button type="success" style="margin-left: 110px;height: 38px;flex:1;">登录</el-button>
              <el-button type="success" style="margin-right:88px;height: 38px;flex:1;">重置</el-button>
            </div>
            <div class="item-center"><p>还没有账号 ? &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;点击这里<span style="color: #409eff;cursor: pointer;">&nbsp;&nbsp;&nbsp;注册</span></p></div>
          </el-form>
        </div>
      </div>
    </div>
  </div>
</template>
<style scoped>
.item-center{
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100vw;
  height: 100vh;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
}
.main {
  background-color: white;
  width: 1000px;
  height: 500px;
  display: flex;
}
.main-left {
  flex: 1;
  background-color: rgba(0, 242, 255, 0.502);
  background-image: url('./assets/login-main-left.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.main-right {
  flex: 1;
  background-color: rgba(0, 170, 255, 0.312);
}
.title {
  font-size: 35px;
  text-align: center;
}
.username-input {
  width: 300px;
  height: 40px;
}
.password-input {
  width: 300px;
  height: 40px;
}
.el-icon {
  font-size: 25px;
}
</style>